package com.yatu.codegen.bean;

import java.io.Serializable;

/**
mysql> show full columns from gym_admin;
+-----------------+--------------+-----------------+------+-----+---------+----------------+---------------------------------+---------+
| Field           | Type         | Collation       | Null | Key | Default | Extra          | Privileges                      | Comment |
+-----------------+--------------+-----------------+------+-----+---------+----------------+---------------------------------+---------+
| id              | bigint(20)   | NULL            | NO   | PRI | NULL    | auto_increment | select,insert,update,references |         |
| last_login_time | datetime     | NULL            | YES  |     | NULL    |                | select,insert,update,references |         |
| nick_name       | varchar(255) | utf8_general_ci | YES  |     | NULL    |                | select,insert,update,references |         |
| password        | varchar(255) | utf8_general_ci | YES  |     | NULL    |                | select,insert,update,references |         |
| phone           | varchar(255) | utf8_general_ci | YES  |     | NULL    |                | select,insert,update,references |         |
+-----------------+--------------+-----------------+------+-----+---------+----------------+---------------------------------+---------+
 */
public class TableField implements Serializable {
	private static final long serialVersionUID = -3339577296448077596L;

	private String field;
	private String fieldName;
	private String type;
	private String collation;
	private Boolean isNull;
	private Boolean isKey;
	private String defaultValue;
	private Boolean isAutoIncrement;
	private String privileges;
	private String comment;

	public String getField() {
		return field;
	}

	public void setField(String field) {
		this.field = field;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getCollation() {
		return collation;
	}

	public void setCollation(String collation) {
		this.collation = collation;
	}

	public Boolean getIsNull() {
		return isNull;
	}

	public void setIsNull(Boolean isNull) {
		this.isNull = isNull;
	}

	public Boolean getIsKey() {
		return isKey;
	}

	public void setIsKey(Boolean isKey) {
		this.isKey = isKey;
	}


	public String getPrivileges() {
		return privileges;
	}

	public void setPrivileges(String privileges) {
		this.privileges = privileges;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public Boolean getIsAutoIncrement() {
		return isAutoIncrement;
	}

	public void setIsAutoIncrement(Boolean isAutoIncrement) {
		this.isAutoIncrement = isAutoIncrement;
	}

	public String getFieldName() {
		return fieldName;
	}

	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

	public String getDefaultValue() {
		return defaultValue;
	}

	public void setDefaultValue(String defaultValue) {
		this.defaultValue = defaultValue;
	}

}